package com.itcc.service;

import com.itcc.entity.PageBean;
import com.itcc.entity.Product;

import java.sql.SQLException;
import java.util.List;

public interface ProductService {
    PageBean<Product> findPage(String tid, int page, int pageSize) throws SQLException;

    Product findProductByPid(String pid) throws SQLException;

    List<Product> findAllProducts() throws SQLException;

    void addProduct(Product product) throws SQLException;

    void deleteProduct(String pid) throws SQLException;

    void updateProduct(Product product) throws SQLException;
}
